/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yinsh
 * Date: 2025-01-16
 * Time: 14:38
 */
public class Test <T>{
    Object[] array = new Object[10];
    T[] array1 = (T[]) new Object[10];
    public T getArray(int pos) {
        return (T)array[pos];
    }

    public void setArray(int pos,T val) {
        array[pos] = val;
    }
}
